#include "common.h"
typedef struct {
	char bfType[2];
	unsigned char bfSize[4];
	unsigned char bfReserved1[2];
	unsigned char bfReserved2[2];
	unsigned char bfOffBits[4];
} bmfh;

typedef struct {
	unsigned char biSize[4];
	unsigned char biWidth[4];
	unsigned char biHeight[4];
	unsigned char biPlanes[2];
	unsigned char biBitCount[2];
	unsigned char stuff1[16];
	unsigned char biClrUsed[4];
	unsigned char biClrImportant[4];
} bmih;

unsigned long ** read_BMP(char* file_name,int *h,int *w);
int write_BMP(char* fileName, unsigned long** pix, int height, int width);
int writeBinBmp(Image binImg, char* fileName);

